package com.zretc.api.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Answer {
    private Integer id;
    private Integer fromId;
    private String fromNickname;
    private String fromAvatar;
    @JSONField(serialize = false)
    private Integer toId;
    private String toNickname;
    private String content;
    private Integer likeNum;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;
    @JSONField(serialize = false)
    private Integer qId;
}
